<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript">
	function changexs() {
		$('#b1').load("abc/aaa.jsp");
	}
	function changecj(str) {
		var bjid = $("#bjid").val();
		if (str == -1) {
			alert("请选择课程");
		} else {
			$('#b1').load("student_cj?bjid=" + bjid + "&kcid=" + str);
		}
	}
</script>
<style type="text/css">
#BBB{
	margin-top: 1%
}
</style>
<div style="background:#FFFFFF;">
<div id="BBB">
<select onchange="changexs()" id="bjid">
	<c:forEach items="${list}" var="x">
		<option value="${x.id}">${x.name}</option>
	</c:forEach>
</select>
&emsp;
<select onchange="changecj(this.value)" id="kcid">
	<option value="-1">--请选择课程--</option>
	<c:forEach items="${list1}" var="a">
		<option value="${a.id}">${a.course}</option>
	</c:forEach>
</select>
</div>
<table width="100%">
	<tbody id="b1">
		<c:forEach items="${list}" var="a">
			<tr>

			</tr>
		</c:forEach>
	</tbody>
</table>
</div>